/*
 * @Author: luojiajun
 * @Email: company.kachun@gmail.com
 * @Date: 2021-07-01 14:16:18
 * @FilePath: /src/enum/index.js
 * @LastEditTime: 2021-07-28 16:00:06
 * @LastEditors: luojiajun
 */
export default {
    ACCESS_TYPE_MAP: {
        0: "无权限",
        1: "只读",
        2: "可读可导出",
        3: "内容编辑",
        4: "元数据编辑",
        5: "管理"
    },
    APPROVE_STATUS_CODE_KEY_MAP: {
        2: "TABLE_SUBSCRIBE_STATUS_CODE_MAP",
        3: "API_PUBLISH_STATUS_CODE_MAP"
    },
    TABLE_SUBSCRIBE_STATUS_CODE_MAP: {
        0: 1,
        1: 2,
        2: 0
    },
    API_PUBLISH_STATUS_CODE_MAP: {
        1: 2,
        2: 1,
        3: 0
    },
    APPROVE_STATUS_KEY_MAP: {
        1: "TABLE_APPROVE_STATUS_MAP",
        2: "TABLE_SUBSCRIBE_STATUS_MAP",
        3: "API_PUBLISH_STATUS_MAP"
    },
    TABLE_APPROVE_STATUS_MAP: {
        0: "驳回",
        1: "通过",
        2: "申请中",
        3: "撤销"
    },
    TABLE_SUBSCRIBE_STATUS_MAP: {
        // 1: "订阅成功",
        // 2: "申请中",
        // 3: "订阅失败"
        0: "订阅失败",
        1: "订阅成功",
        2: "申请中",
        3: "订阅失败"
    },
    API_PUBLISH_STATUS_MAP: {
        // 1: "发布（审核中）",
        // 2: "已上线（审核通过）",
        // 3: "已驳回（审核不通过）"
        0: "已驳回（审核不通过）",
        1: "已上线（审核通过）",
        2: "发布（审核中）",
        3: "已驳回（审核不通过）"
    },
    APPROVE_TYPE_MAP: {
        1: "数据表权限",
        2: "接口服务（订阅）",
        3: "接口服务（发布）"
    },
    APPROVE_TYPE_OPTIONS: [
        {
            label: "数据表权限",
            value: "1"
        },
        {
            label: "接口服务（订阅）",
            value: "2"
        },
        {
            label: "接口服务（发布）",
            value: "3"
        }
    ],
    TABLE_APPROVE_STATUS_OPTIONS: [
        {
            label: "驳回",
            value: "0"
        },
        {
            label: "通过",
            value: "1"
        },
        {
            label: "申请中",
            value: "2"
        },
        {
            label: "撤销",
            value: "3"
        }
    ],
    SERVICE_API_SUBSCRIBE_STATUS_MAP: {
        0: "订阅成功",
        1: "申请中",
        2: "订阅失败"
    },
    SERVICE_API_STATUS_MAP: {
        0: "草稿",
        1: "发布",
        2: "已上线",
        3: "已驳回",
    },
    SERVICE_API_STATUS_OPTIONS: [
        {
            label: "草稿",
            value: "0"
        },
        {
            label: "发布",
            value: "1"
        },
        {
            label: "已上线",
            value: "2"
        },
        {
            label: "已驳回",
            value: "3"
        }
    ],
    INVOKE_TRY_STATUS_MAP: {
        0: '成功',
        1: '服务器异常',
        2: '输入参数有误',
        3: '超过最大调用次数',
    },
    SUBSCRIBE_STATUS_MAP: {
        0: "未订阅",
        1: "已订阅"
    },
    API_TYPE_MAP: {
        0: "静态",
        1: "动态"
    },
    API_UPDATE_FREQUENCY_MAP: {
        1: "实时",
        2: "每小时",
        3: "每日",
        4: "不更新",
    }
};
